package com.atguigu.service.impl;

import com.atguigu.dao.UserDao;
import com.atguigu.dao.impl.UserDaoImpl;
import com.atguigu.pojo.User;
import com.atguigu.service.UserService;

public class UserServiceImpl implements UserService {
    static final UserDao userDao = new UserDaoImpl();
    @Override
    public User findUserByName(String username) {
        return userDao.findUserByName(username);
    }

    @Override
    public int updatePassword(String encrypt,String username) {
        int rows = userDao.updatePassword(encrypt,username);
        return rows;
    }
}
